home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Periodicals / develop / develop 4 code / Poly. in Code Resources / Virtual WDEF / IconWDEF.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-28  |  874 b   |  35 lines  |  [TEXT/MPS ]

  1. /*
  2.     IconWDEF.h
  3.     
  4.     Interface to Icon window definition class.
  5.     
  6.     by Patrick Beard.
  7.  
  8.     ©1990 by Patrick C. Beard.  All rights reserved.
  9.  */
  10.  
  11. #ifndef __ICONWDEF__
  12. #define __ICONWDEF__
  13.  
  14. #ifndef __WINDOWFRAME__
  15. #include "WindowFrame.h"
  16. #endif
  17.  
  18. class IconWindowDef : public WindowFrame {
  19. public:
  20.     // window methods.
  21.     virtual void New(WindowPeek theWindow);
  22.     virtual void CalcRgns();            // we have different regions when iconified.
  23.     virtual void DrawFrame();            // we draw an icon if certain size.
  24.     virtual long Hit(Point& whereHit);
  25. private:
  26.     Boolean iconified;                    // state of our window.
  27.     Boolean everIconified;                // if we've ever been iconified.
  28.     Boolean requestingStateChange;        // we want to change our state.
  29.     short calcRgnsCount;                // a counter.
  30.     Rect iconifyRect;                    // place to hit to iconify window.
  31.     Point iconifiedLocation;            // where to put when iconified.
  32. };
  33.  
  34. #endif
  35.